package com.yanqu.road.entity.log;


import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_peak_hold_silver_donate", desc = "巅峰据点战-银两捐献", autoSave = true, uploadCk = true)
public class LogPeakHoldSilverDonate extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "轮次", isIndex = true)
    private int round;
    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "捐献银两")
    private String silver;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogPeakHoldSilverDonate(int activityId, int round, long userId, String silver) {
        this.activityId = activityId;
        this.round = round;
        this.userId = userId;
        this.silver = silver;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
